package com.itheima.test;/*
 * @author Zsea
 * @date  2022年xx月
 */


import com.itheima.RedisUtils;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;


@SpringBootTest
public class test {


    @Autowired
    RedisUtils redisUtils;

    @Test
    public void test1() {
        redisUtils.set("1", 12, 15, 20L);

        // stringRedisTemplate.opsForValue().set("add to 1", "2020-06-02");
        //开发环境用下面的代码，上面纯简单测试去不同的redis数据库而已
        // redisUtil.setDataBase(RedisPartition.EIGHT.getOrdinal());

        //return redisUtil.get(key);
    }
}
